[PATCH] http2: bound number of http2 frames per tx
authorPhilippe Antoine <pantoine@oisf.net>
Wed, 18 Feb 2026 15:40:23 +0000 (16:40 +0100)
committerAndreas Dolp <dev@andreas-dolp.de>
Thu, 23 Apr 2026 05:14:21 +0000 (07:14 +0200)
commitbaf1481f9c9fdcb664a7b230c138729738cc1214
treeb60b10c0e71a00d2a6b581aef9b01fbb68ca6d74
parent54e6c82ec7846022f8dc8efcad58ff0ae08897df
[PATCH] http2: bound number of http2 frames per tx

Ticket: 8289

If stream.reassembly.depth is unlimited,
an attacker controlling the 2 sides of a communication going through Suricata
can send a transition with an infinite number of headers, until suricata OOMs

Solution is to offer a configuration option to bound the number
of HTTP2 frames we store in a HTTP2 transaction, and produce an
anomaly if this bound is crossed

(cherry picked from commit 784e173278944c3596ea9cb219afcfafece6d156)

Origin: upstream, https://github.com/OISF/suricata/commit/82b7c9c35aaebf8a2811bdb703dd51c2fa0693c2.patch
Bug: https://redmine.openinfosecfoundation.org/issues/8296
Subject: Upstream fix for CVE-2026-31935

Gbp-Pq: Name CVE-2026-31935.patch
rules/http2-events.rules
rust/src/http2/http2.rs
suricata.yaml.in